package net.rlair.sbdemo.controller;

import net.rlair.sbdemo.dao.mybatis.bootmapper.YuelulanUserMapper;
import net.rlair.sbdemo.dao.mybatis.boottwomapper.YuelulanMerchantMapper;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

/**
 * @author lixudong
 */
@Controller
@RequestMapping("yuelulan")
public class YuelelanController {

    @Resource
    private YuelulanMerchantMapper yuelulanMerchantMapper;

    @Resource
    private YuelulanUserMapper yuelulanUserMapper;

    @GetMapping("userList")
    @ResponseBody
    public Object yuelulanlist() {
        return yuelulanUserMapper.selectUser();
    }

    @GetMapping("merchantList")
    @ResponseBody
    public Object listTwo() {
        return yuelulanMerchantMapper.selectUser();
    }

}
